<?php
use think\facade\Route;

Route::group('/v1', function () {
    Route::post('/login', 'Home/login');
    Route::post('/register', 'Home/register');
    Route::post('/get/self', 'Home/getSelf');
    Route::put('/reset/password', 'Home/reset_password');
    Route::post('/change/avatar', 'Home/changeAvatar');
    Route::post('/email', 'Home/sendMailBox');
    Route::post('/create/discuss', 'Home/addDiscuss');
    Route::post('/create/discuss/common', 'Home/addDiscussComment');
    Route::delete('/delete/discuss/common', 'Home/dleDiscussComment');
})->middleware(\app\middleware\Cross::class);